﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Principal;
using System.Web;

namespace Peak.Web.CastleWindsor
{
  public class ProxyPrincipal : IPrincipal
  {
    public IIdentity Identity
    {
      get 
      {
        return HttpContext.Current.User.Identity;
      }
    }

    public bool IsInRole(string role)
    {
      return HttpContext.Current.User.IsInRole(role);
    }
  }
}